import { defineStore } from 'pinia'

export const userInfoStore = defineStore('userInfo',{
    state: ()=>({
        //token
        token: '',
        //登录用户信息
        userName: ''
    }),
    //开启持久化
    persist: {
        enabled: true
    }
})